<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
  <head>
  	<meta charset="UTF-8">
    <title>用户列表</title>
	<link href="../../css/admin/common.css" type="text/css" rel="stylesheet">
	<style type="text/css">
		table{
			text-align: center;
			border-collapse: collapse
		}
		.bgcolor{
		  	background-color: #ccc;
		}
	</style>
	<script type="text/javascript">
		function changeColor(obj){
			obj.className = "bgcolor";
		}
		function changeColor1(obj){
			obj.className = "";
		}
	</script>
</head>
<body>
	<br>
	<table border="1" bordercolor="#ccc">
		<tr>
			<th width="200px">ID</th>
			<th width="200px">E-mail</th>
			<th width="250px">删除</th>
		</tr>
		<c:forEach items="${users}" var="user">
            <tr onmousemove="changeColor(this)" onmouseout="changeColor1(this)">
                <td>${user.id}</td>
                <td>${user.bemail}</td>
                <td>
                    <a style="color: red" href="/management/user/remove?id=${user.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
	</table>
</body>
</html>
